var jsLoading = (function() {
	var obj = new Object();

	function startLoading() {
		if (document.getElementById('div-loading') !== null) {
			document.body.removeChild(document.getElementById('div-loading'));
		}

		obj = document.createElement("div");

		obj.id = 'div-loading';
		obj.className = 'l-loading-overlay';
		obj.innerHTML = '<i class="l-loading-icon l-loading l-loading-spin l-loading-spinner l-loading-spin l-loading-3x"></i>';

		document.body.appendChild(obj);
	}

	function stopLoading() {
		if (document.getElementById('div-loading') !== null) {
			document.body.removeChild(document.getElementById('div-loading'));
		}
	}

	return {
		startLoading: startLoading,
		stopLoading: stopLoading
	}
}());